/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  dev
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system/fluid";
    object      createBafflesDict.baffle1D;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

internalFacesOnly true;

fields true;

baffles
{
    baffle1D
    {
        type        surface;
        surface     triSurface;
        file        "baffle1D.stl";

        owner
        {
            name        baffle1D0;
            type        mappedWall;
            neighbourPatch baffle1D1;

            patchFields
            {
                #include "./include/wallPatchFields"

                T
                {
                    type        compressible::thermalBaffle1D<eConstSolidThermoPhysics>;
                    value       uniform 300;

                    // Baffle thickness [m]
                    thickness   uniform 0.005;

                    // Baffle source heat flux [W/m^2]
                    qs          uniform 100;

                    // Baffle physical properties
                    specie
                    {
                        molWeight   20;
                    }
                    transport
                    {
                        kappa       1;
                    }
                    thermodynamics
                    {
                        hf          0;
                        Cv          10;
                    }
                    equationOfState
                    {
                        rho         10;
                    }
                }
            }
        }

        neighbour
        {
            name        baffle1D1;
            type        mappedWall;
            neighbourPatch baffle1D0;

            patchFields
            {
                #include "./include/wallPatchFields"

                T
                {
                    type        compressible::thermalBaffle1D<eConstSolidThermoPhysics>;
                    value       uniform 300;
                }
            }
        }
    }
}


// ************************************************************************* //
